package com.demo.boot.repositories;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import com.demo.boot.bean.User;

@Transactional
public interface UserRepository extends JpaRepository<User, Long>{
	
	public User getUserByName(String name);
	
	public User getUserByNameAndPassword(String name,String password);
	
}
